package com.yunchao.library.socket.model.control


import com.yunchao.library.socket.extensions.toReadOnlyBuffer

data class ExecuteRequest(val id: UInt) {

    companion object {
        fun fromByteArray(bytes: ByteArray): ExecuteRequest {
            return ExecuteRequest(bytes.toReadOnlyBuffer().int.toUInt())
        }
    }
}